Skip to content

More precise error message when escaping a regex with a ref (#14560) #14562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

sabiwara
Copy link
Contributor

@sabiwara sabiwara commented Jun 7, 2025

Backporting #14560 (added the ?OTP_RELEASE < 28 guard to match 4d29054)

@@ -202,6 +194,29 @@ do_escape(Fun, _) when is_function(Fun) ->
do_escape(Other, _) ->
bad_escape(Other).

escape_map_key_value(K, V, Map, Q) ->
MaybeRef = if
?OTP_RELEASE < 28 -> nil;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
?OTP_RELEASE < 28 -> nil;

@josevalim
Copy link
Member

We likely won't ship a new v1.18, so we can close this, sorry for the wrong message.

@josevalim josevalim closed this Jun 7, 2025
@sabiwara sabiwara deleted the backport-regex branch June 7, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants